c# order by descending on 2 values

76

c# order by descending on 2 values -

var sortedTeams = nflTeams.OrderBy(t => t.Conference)
                    .ThenBy(t => t.Division)
                    .ThenBy(t => t.Team);
Code language: C# (cs)

Comments

Submit
0 Comments